import request from "@/utils/request";
// 累计维修完成
export function deviceRepairTotal(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/cumulative-maintenance-completed",
    method: "post",
    data: data,
  });
}
// 累计巡检完成
export function deviceInspectionsTotal(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/cumulative-inspections-completed",
    method: "post",
    data: data,
  });
}
// 本月巡检
export function deviceInspectionsMonth(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/inspection-tasks-completed",
    method: "post",
    data: data,
  });
}
// 年度维修
export function deviceRepairYear(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/annual-repair",
    method: "post",
    data: data,
  });
}
// 年度巡检
export function deviceInspectionYear(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/annual-inspection",
    method: "post",
    data: data,
  });
}
// 年度报修
export function deviceReportYear(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/annual-fault-report",
    method: "post",
    data: data,
  });
}
// 故障设备top5
export function deviceFaultyTop(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/faulty-top5",
    method: "post",
    data: data,
  });
}
// 设备在线数量
export function deviceOnlineNum(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/online-quantity",
    method: "post",
    data: data,
  });
}

// 设备故障上报
export function devicereportMonitor(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/fault-report-monitor",
    method: "post",
    data: data,
  });
}

// OEE趋势分析设备类型下拉
export function deviceOEEType(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/oee-trends/type-drop-down",
    method: "get",
    data: data,
  });
}
// 主要设备OEE趋势
export function deviceOEETrends(data) {
  return request({
    url: "/v2/ncjc/ncjc_device_management/data-board/device/oee-trends",
    method: "post",
    data: data,
  });
}